# $OpenBSD: Makefile,v 1.21 2015/03/27 08:16:24 ajacoutot Exp $

COMMENT =	simple archive manager
CATEGORIES =	x11 archivers
DISTNAME =	xarchiver-0.5.4
REVISION =	0

MAINTAINER =	Landry Breuil <landry@openbsd.org>
MASTER_SITES =	${MASTER_SITE_SOURCEFORGE:=xarchiver/}
EXTRACT_SUFX =	.tar.bz2
HOMEPAGE =	http://xarchiver.sourceforge.net

# GPLv2
PERMIT_PACKAGE_CDROM =	Yes

MODULES =	devel/gettext
USE_GMAKE =	Yes

CONFIGURE_STYLE =	gnu

CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

LIB_DEPENDS =	x11/gtk+2
RUN_DEPENDS =	archivers/zip \
		archivers/unzip \
		archivers/gtar \
		archivers/p7zip \
		devel/xdg-utils \
		devel/desktop-file-utils \
		x11/gtk+3,-guic

WANTLIB =	X11 Xcomposite Xcursor Xdamage Xext Xfixes \
		Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig \
		freetype gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 \
		m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1 \
		png z pthread-stubs xcb gthread-2.0 pthread xcb-render \
		gdk-x11-2.0 gdk_pixbuf-2.0 gtk-x11-2.0 \
		ffi graphite2 harfbuzz xcb-shm

.include <bsd.port.mk>
